﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EPiServer.Core;
using System.Linq.Expressions;

namespace EPiServer
{
    [AttributeUsage(AttributeTargets.Property)]
    public class PopulateFromAttribute : Attribute
    {
        public string PageReferenceProperty { get; private set; }
        public string CountProperty { get; private set; }

        public PopulateFromAttribute(string pageReferenceProperty)
        {
            PageReferenceProperty = pageReferenceProperty;
        }

        public PopulateFromAttribute(string pageReferenceProperty, string countProperty)
            : this(pageReferenceProperty)
        {
            CountProperty = countProperty;
        }

    }
}